<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="addProducts.aspx.cs" Inherits="_Default" Title="Add Product" %>

<%@ Register Assembly="CustomControlFreak" Namespace="CustomControlFreak" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
// <!CDATA[



// ]]>
</script>

   
    <table class="mainTable"  style="width: 960px">
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 114px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="5" style="height: 98px">
                <span style="font-size: 14pt">
                    <hr style="font-weight: bold" />
                    <span style="font-size: 9pt">&nbsp;</span><br />
                    <strong>&nbsp;
                    
                    Add Product(s):&nbsp; </strong>
                 
                </span>
                <br />
                <br />
                <hr />
                <strong><span style="font-size: 14pt"></span></strong>
             </td>
        </tr>
        <tr>
            <td colspan="5">
                Please enter the following details of product(s) that you are going to sell through
                our MWIS system.&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 100px; height: 24px;">
            </td>
            <td style="width: 100px; height: 24px;">
            </td>
            <td style="width: 100px; height: 24px;">
            </td>
            <td style="width: 114px; height: 24px;">
            </td>
            <td style="width: 100px; height: 24px;">
            </td>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label1" runat="server" Text="Product Category:" Width="118px"></asp:Label></td>
            <td style="width: 100px; height: 29px">
                <asp:DropDownList cssClass="mwisTextBox" ID="lstpdtcategory" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstpdtcategory_SelectedIndexChanged">
                </asp:DropDownList></td>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label2" runat="server" Text="Product(s):" Width="78px"></asp:Label></td>
            <td style="width: 114px; height: 29px">
                <asp:DropDownList cssClass="mwisTextBox" ID="lstpdt" runat="server" DataTextField="productOrServiceName" DataValueField="productOrServiceID">
                </asp:DropDownList></td>
            <td style="width: 100px; height: 29px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label3" runat="server" Text="Quantity Available:" Width="118px"></asp:Label></td>
            <td style="width: 100px; height: 29px">
                <asp:TextBox cssClass= "mwisTextBox" ID="txtQuantity" runat="server"></asp:TextBox></td>
            <td style="width: 100px; height: 29px">
                <asp:DropDownList cssClass="mwisTextBox" ID="lstunit" runat="server" Width="61px">
                    <asp:ListItem>Kg</asp:ListItem>
                    <asp:ListItem>l (litre)</asp:ListItem>
                    <asp:ListItem>Number</asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList></td>
            <td style="width: 114px; height: 29px">
            </td>
            <td style="width: 100px; height: 29px">
            </td>
        </tr>
        <tr>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label4" runat="server" Text="Unit Price" Width="116px"></asp:Label></td>
            <td style="width: 100px; height: 29px">
                <asp:TextBox CssClass="mwisTextBox" ID="txtUnitPrice" runat="server"></asp:TextBox></td>
            <td style="width: 100px; height: 29px">
            </td>
            <td style="width: 114px; height: 29px">
            </td>
            <td style="width: 100px; height: 29px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label5" runat="server" Text="Validation Period:" Width="115px"></asp:Label></td>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label6" runat="server" Text="Starting Period" Width="137px"></asp:Label></td>
            <td style="height: 29px" colspan="2">
            <cc1:DaintyDate ID="dtpStartingPeriod" CalendarType="TextBoxAndImage" runat="server" ForeColor="White" AbbreviateMonths="True" FormatType="DDMMYYYY"   /></td>
            <td style="width: 100px; height: 29px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px;">
            </td>
            <td style="width: 100px; height: 29px;">
                <asp:Label ID="Label7" runat="server" Text="Ending Period" Width="137px"></asp:Label></td>
            <td style="height: 29px;" colspan="2">
                <cc1:DaintyDate ID="dtpEndingPeriod" CalendarType="TextBoxAndImage" runat="server"   /></td>
            <td style="width: 100px; height: 29px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 100px; height: 29px">
                <asp:Label ID="Label11" runat="server" Text="Description:" Width="115px"></asp:Label></td>
            <td colspan="4" style="height: 29px">
                <asp:TextBox ID="txtDescription" runat="server" Height="74px" TextMode="MultiLine" Width="398px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="lblResult" runat="server" Width="115px"></asp:Label></td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 114px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px; height: 20px;">
            </td>
            <td style="width: 100px; text-align: right; height: 20px;">
                <asp:Button CssClass="mwisButton" ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /></td>
            <td style="width: 100px; text-align: right; height: 20px;">
                <asp:Button CssClass="mwisButton" ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" /></td>
            <td style="width: 114px; height: 20px;">
                &nbsp;</td>
            <td style="width: 100px; height: 20px;">
            </td>
        </tr>
    </table>
</asp:Content>

